//
//  MyHeaderCollectionReusableView.m
//  14-homework-liwushuo
//
//  Created by 王道林 on 16/8/2.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "MyHeaderCollectionReusableView.h"
#define COLORAUTO [UIColor colorWithRed:(arc4random()%256/255.0) green:(arc4random()%256/255.0) blue:(arc4random()%256/255.0) alpha:1.0]

@implementation MyHeaderCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
}


- (void)createSubView
{
    _label = [[UILabel alloc] initWithFrame:CGRectMake(5, 5, 60, 40)];
//    _label.backgroundColor = COLORAUTO;
    [self addSubview:_label];
}



@end
